package com.liu.nb.mapper;

import com.liu.nb.entity.SysUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author liuziyi
 * @since 2021-08-05
 */
@Mapper
@Repository
public interface SysUserMapper extends BaseMapper<SysUser> {
//  获得用户的菜单权限
    List<Long> getNavMenuIds(long userId);

//  根据菜单权限获得用户信息
    List<SysUser> listByMenuId(long menuId);
}
